package com.nhpman.pattern.visitor.demo;

import com.nhpman.pattern.visitor.entry.Employee;
import com.nhpman.pattern.visitor.entry.FulltimeEmployee;
import com.nhpman.pattern.visitor.entry.ParttimeEmployee;
import com.nhpman.pattern.visitor.opt.Department;
import com.nhpman.pattern.visitor.opt.FinancialDepartment;

public class Client {

	public static void main(String args[]){
		EmployeeList list = new EmployeeList();
		Employee emp1,emp2;
		emp1 = new FulltimeEmployee("A", 10D, 100);
		emp2 = new ParttimeEmployee("B", 10D, 5);
		
		list.addEmployee(emp1);
		list.addEmployee(emp2);
		
		Department dep;
		dep = new FinancialDepartment();
		
		list.accept(dep);
	}
}
